package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.SubTaskProcessInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by xxx on 2017/10/1.
 */
public interface SubTaskProcessInfoCrudRepository extends JpaRepository<SubTaskProcessInfo, Long> {

    List<SubTaskProcessInfo> findAllBySubTaskIdOrderByTaskProcessInfoIdDesc(Long subTaskId);

    SubTaskProcessInfo findByWorkOrderIdAndSubTaskIdAndActTaskId(Long workOrderId, Long subTaskId, String actTaskId);
}
